package com.lagou.user.client;

import com.lagou.user.client.fallback.CodeFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jacken
 * @date 2020/4/25 9:49 PM
 */
@FeignClient(name = "lagou-service-code", fallback = CodeFallback.class)
public interface CodeFeignClient {

  @RequestMapping(value = "/code/validate/{email}/{code}", method = RequestMethod.GET)
  Integer validateCode(@PathVariable("email") String email, @PathVariable("code") String code);

}
